luci-proto-ipv6: map: allow /128 IPv6 prefix length
authorArayuki Mago <[email protected]>
Mon, 1 Sep 2025 15:51:33 +0000 (00:51 +0900)
committerPaul Donald <[email protected]>
Thu, 4 Sep 2025 12:29:25 +0000 (14:29 +0200)
IPv6 prefix length is normally valid in the range 0–64.
Additionally, /128 is a special case that needs to be supported.

Signed-off-by: Arayuki Mago <[email protected]>
protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js

index 471608b5aeee4271042120d3b025c5ee5a30cf9f..62bc3648a9cf03a77b9fa626081dbd6135819672 100644 (file)
@@ -62,7 +62,7 @@ return network.registerProtocol('map', {
 
                o = s.taboption('general', form.Value, 'ip6prefixlen', _('IPv6 prefix length'), _('The length of the IPv6 prefix in bits'));
                o.placeholder = '16';
-               o.datatype    = 'range(0,64)';
+               o.datatype = 'or(range(0,64),128)';
 
                o = s.taboption('general', form.Value, 'ealen', _('EA-bits length'));
                o.datatype = 'range(0,48)';